﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConsumeInfo.aspx.cs" Inherits="CRS.Web.BaseData.ConsumeInfo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>消费情况</title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
    <base target="_self" />
    <script type="text/javascript">

    function SetTxtCode()
    {
        var txt = document.getElementById('txtGoodsCode');
        txt.value="";
        txt.focus();
    }
    function aa(){
        if (event.keyCode == 13 && document.readyState == "complete") {
            var o = document.getElementById("btnEnter");
            o.click();
            setTimeout("SetTxtCode",1000);
        }
    }
    </script>
</head>
<body onload="SetTxtCode();">
    <form id="frm" runat="server">
    <div class="PageNav">
        房间消费清单
    </div>
    <div>
    
        <table class="tableElse" style="border: 1px solid #A8CFEB; margin-top: 2px; width: 100%"
            cellpadding="0" cellspacing="5">
            <tr>
                <td colspan="2">
                    <strong style="font-size: large">房间【<asp:Label ID="lblRoomName" runat="server" Text="RoomName"
                        ForeColor="Blue"></asp:Label>
                        <strong style="font-size: large">】<asp:Label ID="lblMsg" runat="server" ForeColor="#009933"
                            Text="当前消费：200元；开局时间：2.5小时"></asp:Label>
                        </strong></strong>
                </td>
            </tr>
            <tr>
                <td style="height: 8px">
                </td>
            </tr>
            <tr>
                <td style="vertical-align: middle">
                    货品条码：<asp:TextBox ID="txtGoodsCode" onkeydown="aa();" runat="server"></asp:TextBox>
                    <asp:Button ID="btnEnter" runat="server" Text="*"  class="btn_mouseout" onmouseover="this.className='btn_mouseover' "
                        onmouseout="this.className='btn_mouseout' " onmousedown="this.className='btn_mousedown'"
                        onmouseup="this.className='btn_mouseup'" onclick="btnEnter_Click" style="display: none" />
                    &nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="确  认"  class="btn_mouseout" onmouseover="this.className='btn_mouseover' "
                        onmouseout="this.className='btn_mouseout' " onmousedown="this.className='btn_mousedown'"
                        onmouseup="this.className='btn_mouseup'" onclick="Button1_Click"/>
                    &nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" Text="撤  消"  class="btn_mouseout" onmouseover="this.className='btn_mouseover' "
                        onmouseout="this.className='btn_mouseout' " onmousedown="this.className='btn_mousedown'"
                        onmouseup="this.className='btn_mouseup'" onclick="Button2_Click"/>
                    </td>
            </tr>
            <tr>
                <td style="height: 8px">
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Panel ID="Panel1" runat="server" GroupingText="当前消费明细" Height="100%">
                        <asp:GridView ID="gvCurrList" runat="server" Width="100%" AutoGenerateColumns="False"
                            BorderColor="GrayText" BorderStyle="Solid" BorderWidth="1px" 
                            onrowdeleted="gvCurrList_RowDeleted" onrowcommand="gvCurrList_RowCommand">
                            <RowStyle CssClass="DefaultPgListTrItemStyle" HorizontalAlign="Center" />
                            <Columns>
                                <asp:BoundField DataField="货品条码" HeaderText="货品条码" HeaderStyle-Width="96px">
                                    <HeaderStyle Width="96px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="货品名称" HeaderText="货品名称" HeaderStyle-Width="96px">
                                    <HeaderStyle Width="96px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="类别" HeaderText="类别" HeaderStyle-Width="48px">
                                    <HeaderStyle Width="48px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="消费类型" HeaderText="消费类型" HeaderStyle-HorizontalAlign="Center"
                                    ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="64px" >
                                <HeaderStyle HorizontalAlign="Center" Width="64px" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="价格" HeaderText="价格" ItemStyle-HorizontalAlign="Right"
                                    HeaderStyle-Width="48px">
                                    <HeaderStyle Width="48px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="数量" HeaderText="数量" ItemStyle-HorizontalAlign="Right"
                                    HeaderStyle-Width="48px">
                                    <HeaderStyle Width="48px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="金额" HeaderText="金额" ItemStyle-HorizontalAlign="Right"
                                    HeaderStyle-Width="48px">
                                    <HeaderStyle Width="48px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:ButtonField HeaderText="赠送" Text="赠送" HeaderStyle-HorizontalAlign="Left" 
                                    ItemStyle-HorizontalAlign="Left" DataTextField="Id">
                                    <HeaderStyle HorizontalAlign="Left" Width="48px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:ButtonField>
                                <asp:ButtonField HeaderText="删除" Text="删除" HeaderStyle-HorizontalAlign="Left" 
                                    ItemStyle-HorizontalAlign="Left" DataTextField="Id">
                                    <HeaderStyle HorizontalAlign="Left" Width="48px"  />
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:ButtonField>
                            </Columns>
                            <HeaderStyle CssClass="DefaultPgListTrHeadStyle" HorizontalAlign="Center" />
                            <AlternatingRowStyle CssClass="DefaultPgListTrAlItemStyle" HorizontalAlign="Center" />
                        </asp:GridView>
                        <div style="height: 8px">
                        </div>
                        <table border="1" style="border-color: graytext; border-width: 1px; border-style: Solid;
                            border-collapse: collapse; margin-top: 0px">
                            <tr class="tdWoObjProVal">
                                <td style="width: 96px;" align="center">
                                    实收金额：
                                </td>
                                <td align="right" style="width: 96px;">
                                    <asp:Label ID="lblCurrCost" runat="server" Text="100"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td style="height: 8px">
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Panel ID="Panel2" runat="server" GroupingText="累积消费明细" Height="100%">
                        <asp:GridView ID="gvHisList" runat="server" Width="100%" AutoGenerateColumns="False"
                            BorderColor="GrayText" BorderStyle="Solid" BorderWidth="1px">
                            <RowStyle CssClass="DefaultPgListTrItemStyle" HorizontalAlign="Center" />
                            <Columns>
                                <asp:BoundField DataField="货品条码" HeaderText="货品条码" HeaderStyle-Width="96px" />
                                <asp:BoundField DataField="货品名称" HeaderText="货品名称" HeaderStyle-Width="96px" />
                                <asp:BoundField DataField="类别" HeaderText="类别" HeaderStyle-Width="48px" />
                                <asp:BoundField DataField="消费类型" HeaderText="消费类型" HeaderStyle-HorizontalAlign="Center"
                                    ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="64px" />
                                <asp:BoundField DataField="价格" HeaderText="价格" ItemStyle-HorizontalAlign="Right"
                                    HeaderStyle-Width="48px" />
                                <asp:BoundField DataField="数量" HeaderText="数量" ItemStyle-HorizontalAlign="Right"
                                    HeaderStyle-Width="48px" />
                                <asp:BoundField DataField="金额" HeaderText="金额" ItemStyle-HorizontalAlign="Right"
                                    HeaderStyle-Width="48px" />

                                <asp:ButtonField HeaderText="退货" Text="退货" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" />
                            </Columns>
                            <HeaderStyle CssClass="DefaultPgListTrHeadStyle" HorizontalAlign="Center" />
                            <AlternatingRowStyle CssClass="DefaultPgListTrAlItemStyle" HorizontalAlign="Center" />
                        </asp:GridView>
                        <div style="height: 8px">
                        </div>
                        <table border="1" style="border-color: graytext; border-width: 1px; border-style: Solid;
                            border-collapse: collapse; margin-top: 0px">
                            <tr class="tdWoObjProVal">
                                <td align="center" style="width: 96px">
                                    实收金额：
                                </td>
                                <td align="right" style="width: 96px">
                                    <asp:Label ID="lblSumCost" runat="server" Text="1000 "></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
